import request from '@/utils/request'

export function versionList(data) {
  return request({
    url: '/version',
    method: 'get',
    params: data
  })
}
export function createVersion(data) {
  return request({
    url: '/version',
    method: 'post',
    data
  })
}
export function updataVersion(data) {
  return request({
    url: '/version',
    method: 'put',
    data
  })
}
export function detailVersion(id) {
  return request({
    url: '/version/' + id,
    method: 'get'
  })
}
